// node --experimental-modules test.mjs
import * as secp256k1 from "@noble/secp256k1";
import { bech32 } from "@scure/base";
const Bech32MaxSize = 5000;
let data = secp256k1.utils.hexToBytes("a4c6721950d2e*******change your eth privateKey********a6e217d3291e10");
let words = bech32.toWords(data);
let nostrPrivateKey = bech32.encode("nsec", words, Bech32MaxSize);

console.log(nostrPrivateKey);
